package com.yixin.hospital.entity.dto.req.dictionary;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel("编辑字典请求体")
@Data
public class DictionaryEditReqDTO {

    @ApiModelProperty("字典id")
    @NotNull(message = "字典id不能为空")
    private Long id;

    @ApiModelProperty("字典类型名称")
    @NotNull(message = "字典类型不能为空")
    private Integer type;

    @ApiModelProperty("字典名称")
    @NotBlank(message = "字典名称不能为空")
    private String name;

    private Integer sort;
}
